var set = new Set([1, 2, 5, 4, 5, 7, 6, 4]); 
var arr=[...set]
console.log(arr);